!{include file='common/iheader.htm'}
<div id="left_tree">
	<dl>
		<dt>布局组件分类</dt>
		!{foreach from=$layout_widget_cates item=cate key=cate_id}
		<dd><a href="/admin.php?app=widget&act=cate&id=!{$cate_id}" target="show_frame">!{$cate.name}</a></dd>
		!{/foreach}
		<dt>内容组件分类</dt>
		!{foreach from=$content_widget_cates item=cate key=cate_id}
		<dd><a href="/admin.php?app=widget&act=cate&id=!{$cate_id}" target="show_frame">!{$cate}</a></dd>
		!{/foreach}
		<dt>其它</dt>
		<dd><a href="/admin.php?app=widget&act=cate_list" target="show_frame">分类管理</a></dd>
		<dd class="selected"><a href="/admin.php?app=widget&act=create_cate" target="show_frame">帮助中心</a></dd>
	</dl>
</div>
<div id="opt_div">
	<iframe frameborder="0" border="0" class="box_iframe" src="/admin.php?app=widget&act=help" name="show_frame" id="show_frame"></iframe>
</div>
<script type="text/javascript">
$(function(){
	$("#left_tree dd a").click(function(){
		$('#left_tree .selected').removeClass('selected');
		$(this).parents('dd').addClass('selected');
	});
});

function reset_frame(){
	var iframe_height = 0;
	if(top.document.getElementById("iframe_file") == null){
		iframe_height = $(window).height();
	}else{
		iframe_height = parseInt(top.document.getElementById("iframe_file").style.height);
	}
	var iframe_width = $("#opt_div").width();
	$('.box_iframe').css({width:iframe_width, height:iframe_height});
	$('#left_tree').height(iframe_height);
}
window.onresize = reset_frame;
reset_frame();
</script>
!{include file='common/ifooter.htm'}